#include "softblock_1x1.h"
#include "define.h"

// 创建 SoftBlock_1x1 实例的函数
sprite* createSoftBlock_1x1() {
    return new softblock_1x1();
}

// 构造函数
softblock_1x1::softblock_1x1() {
    this->width = GRID_WIDTH;
    this->height = GRID_HEIGHT;
    this->isCollisionable = true;// 阻塞
    this->collisionDirs = direction_bottom;
    this->spriteType = sprite_type_softblock_1x1;
    this->imgSoftBlock_1x1 = new IMAGE;
    loadimage(this->imgSoftBlock_1x1, "img/softblock_1x1.png");
}

// 析构函数
softblock_1x1::~softblock_1x1() {
    delete this->imgSoftBlock_1x1;
}

// 绘制函数
void softblock_1x1::draw() {
    putimage(this->x, this->y, this->imgSoftBlock_1x1);
}

// 更新函数
void softblock_1x1::update() {

}